package tests;

import logic.Teacher;
import logic.User;

import org.junit.*;
import static org.junit.Assert.*;

/**
 * The class <code>UserTest</code> contains tests for the class <code>{@link User}</code>.
 *

 * @author Cesar
 */
public class UserTest {
	/**
	 * Run the String getEmail() method test.
	 *
	 * @throws Exception
	 *
	
	 */
	@Test
	public void testGetEmail_1()
		throws Exception {
		User fixture = new Teacher("", "", "", "", "");

		String result = fixture.getEmail();

		
		assertEquals("", result);
	}

	/**
	 * Run the String getFirstName() method test.
	 *
	 * @throws Exception
	 *
	
	 */
	@Test
	public void testGetFirstName_1()
		throws Exception {
		User fixture = new Teacher("", "", "", "", "");

		String result = fixture.getFirstName();

		
		assertEquals("", result);
	}

	/**
	 * Run the String getLastName() method test.
	 *
	 * @throws Exception
	 *
	
	 */
	@Test
	public void testGetLastName_1()
		throws Exception {
		User fixture = new Teacher("", "", "", "", "");

		String result = fixture.getLastName();

		
		assertEquals("", result);
	}

	/**
	 * Run the String getPassword() method test.
	 *
	 * @throws Exception
	 *
	
	 */
	@Test
	public void testGetPassword_1()
		throws Exception {
		User fixture = new Teacher("", "", "", "", "");

		String result = fixture.getPassword();

		
		assertEquals("", result);
	}

	/**
	 * Run the void setEmail(String) method test.
	 *
	 * @throws Exception
	 *
	
	 */
	@Test
	public void testSetEmail_1()
		throws Exception {
		User fixture = new Teacher("", "", "", "", "");
		String email = "";

		fixture.setEmail(email);

		
	}

	/**
	 * Run the void setFirstName(String) method test.
	 *
	 * @throws Exception
	 *
	
	 */
	@Test
	public void testSetFirstName_1()
		throws Exception {
		User fixture = new Teacher("", "", "", "", "");
		String firstName = "";

		fixture.setFirstName(firstName);

		
	}

	/**
	 * Run the void setLastName(String) method test.
	 *
	 * @throws Exception
	 *
	
	 */
	@Test
	public void testSetLastName_1()
		throws Exception {
		User fixture = new Teacher("", "", "", "", "");
		String lastName = "";

		fixture.setLastName(lastName);

		
	}

	/**
	 * Run the void setPassword(String) method test.
	 *
	 * @throws Exception
	 *
	
	 */
	@Test
	public void testSetPassword_1()
		throws Exception {
		User fixture = new Teacher("", "", "", "", "");
		String password = "";

		fixture.setPassword(password);

		
	}

	/**
	 * Run the String toString() method test.
	 *
	 * @throws Exception
	 *
	
	 */
	@Test
	public void testToString_1()
		throws Exception {
		User fixture = new Teacher("", "", "", "", "");

		String result = fixture.toString();

		
		assertEquals("User [firstName=, lastName=, email=, password=]Teacher [sala=]", result);
	}
	public static void main(String[] args) {
		new org.junit.runner.JUnitCore().run(UserTest.class);
	}
}